package org.zjz.basket.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author zjz
 * @since 05/07/2022 - 11:57 下午
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("user")
public class UserEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户编号
     */
    @TableId(value = "u_id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 用户名
     */
    @TableField("u_username")
    private String username;

    /**
     * 密码
     */
    @TableField("u_password")
    private String password;

    /**
     * 身份
     */
    @TableField("u_identity")
    private String identity;

    /**
     * 用户头像
     */
    @TableField("u_picture")
    private String picture;

    /**
     * 账号创建时间
     */
    @TableField("u_create_time")
    private LocalDateTime createTime;

    /**
     * 联系方式
     */
    @TableField("u_tel")
    private String tel;

    /**
     * 真实姓名
     */
    @TableField("u_real_name")
    private String realName;


    public static final String U_ID = "u_id";

    public static final String U_USERNAME = "u_username";

    public static final String U_PASSWORD = "u_password";

    public static final String U_IDENTITY = "u_identity";

    public static final String U_PICTURE = "u_picture";

    public static final String U_CREATE_TIME = "u_create_time";

    public static final String U_TEL = "u_tel";

    public static final String U_REAL_NAME = "u_real_name";

}
